import Mock from 'mockjs'

function getDetail_mock() {
  const json = {
      code: 200,
      success: true,
      data: "测试返回",
      msg: "测试成功"
  };
  return json;
}

function getDetail_mock_2() {
  const json = {
    code: 200,
    success: true,
    data: "测试返回",
    msg: "测试成功"
  };
  return json;
}

export default ({mock}) => {
  if (!mock) return;
  Mock.mock('/api/mapping/web/getDetail', 'get', getDetail_mock());
  Mock.mock('/api/mapping/web/getDetail2', 'get', getDetail_mock_2());
}
